package com.winning.pmph.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import javax.persistence.Table;

/**
 * @author wu_di@winning.com.cn
 * @date 2020/10/23
 */
@Data
@Table(name = "knowledge_sync_status")
public class KnowledgeSyncStatus {

    public static Integer FAILED_KIND_PRODUCER = 0;
    public static Integer FAILED_KIND_CONSUMER = 1;
    /**
     * 待同步，未同步
     */
    public static Integer FAILED_KIND_WAITING = 2;
    public static Integer KIND_SUCCESS = 3;

    @TableId
    private String id;

    private String knowledgeId;
    @TableField(exist = false)
    private String knowledgeName;
    @TableField(exist = false)
    private Boolean platformStatus;

    private String knowledgeLibId;

    private Integer version;

    private String platformId;
    @TableField(exist = false)
    private String platformName;
    /**
     * 失败分类标记, 0:推送mq失败, 1:mq消费失败
     */
    private Integer kind;

    private String operatedTime;

    @TableField(exist = false)
    private String drugInfoLibCompany;
    @TableField(exist = false)
    private String drugInfoLibSource;
}
